package com.foreknow.elm.service;

import com.foreknow.elm.po.Orders;

import java.util.List;

public interface OrderService {
    /**
     * 创建订单
     * @param userId
     * @param businessId
     * @param daId
     * @param orderTotal
     * @return
     */
    public int createOrders(String userId, Integer businessId, Integer daId, Double orderTotal);

    /**
     * 根据订单的id查询订单信息
     * @param orderId
     * @return
     */
    public Orders getOrdersById(Integer orderId);

    /**
     * 根据用户的id查询订单列表
     * @param userId
     * @return
     */
    public List<Orders> listOrdersByUserId(String userId);
}
